﻿<Window x:Class="SMG.Presentation.WPessoaConsulta"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Consulta de Pessoa" Height="300" Width="300"
        WindowStartupLocation="CenterScreen">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="Nome :" Margin="5,5,0,0"/>
            <TextBox x:Name="txtNome" Margin="5,5,0,0" Width="150"/>
        </StackPanel>
        
        <Button x:Name="btnConsultar" Content="Buscar" Grid.Column="1" Margin="5,5,5,0" Click="btnConsultar_Click" />
        
        <ListView x:Name="lstResult" Grid.Row="1" Grid.ColumnSpan="2" Margin="5,5,5,5" Height="auto" MouseDoubleClick="lstResult_MouseDoubleClick"
                  SelectionMode="Single">
            <ListView.View>
                <GridView>
                    <GridViewColumn  DisplayMemberBinding="{Binding Nome}" Header="Nome" Width="150"/>
                    <GridViewColumn  DisplayMemberBinding="{Binding Email}" Header="Email" Width="100"/>
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</Window>
